home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / affectedLightTest.wrl next >
Text File  |  2000-11-08  |  4KB  |  165 lines

  1. #VRML V2.0 utf8
  2. Background {
  3.     color .5 .5 1
  4. }
  5. DirectionalLight {
  6. intensity 0.3
  7. }
  8. DEF MyLight DirectionalLight {
  9. intensity 0.9
  10. }
  11. Viewpoint {
  12.     position 0 -2 10 
  13. }
  14. DEF Box1 Transform {
  15. translation -3 0 0 
  16.     children [
  17.         Shape {
  18.             appearance Appearance {
  19.                 material Material { diffuseColor 1 0 0 }
  20.             }
  21.             geometry IndexedFaceSet {
  22.                 coord Coordinate {
  23.                     point [
  24.                         -1 -1 1
  25.                         -1 1 1
  26.                         1 1 1
  27.                         1 -1 1
  28.                         -1 -1 -1
  29.                         -1 1 -1
  30.                         1 1 -1
  31.                         1 -1 -1                          
  32.                     ]
  33.                 }
  34.                 coordIndex [
  35.                     0 3 1 -1
  36.                     3 2 1 -1
  37.                     3 7 2 -1
  38.                     7 6 2 -1
  39.                     7 4 6 -1
  40.                     4 5 6 -1
  41.                     4 0 5 -1
  42.                     0 1 5 -1
  43.                     1 2 5 -1
  44.                     2 6 5 -1
  45.                     0 4 3 -1
  46.                     4 7 3 -1
  47.                 ]
  48.             }
  49.         }
  50.     ]
  51. }
  52. DEF Box2 Transform {
  53.     children [
  54.         Shape {
  55.             appearance Appearance {
  56.                 material Material { diffuseColor 0 1 0 }
  57.             }
  58.             geometry IndexedFaceSet {
  59.                 coord Coordinate {
  60.                     point [
  61.                         -1 -1 1
  62.                         -1 1 1
  63.                         1 1 1
  64.                         1 -1 1
  65.                         -1 -1 -1
  66.                         -1 1 -1
  67.                         1 1 -1
  68.                         1 -1 -1                          
  69.                     ]
  70.                 }
  71.                 coordIndex [
  72.                     0 3 1 -1
  73.                     3 2 1 -1
  74.                     3 7 2 -1
  75.                     7 6 2 -1
  76.                     7 4 6 -1
  77.                     4 5 6 -1
  78.                     4 0 5 -1
  79.                     0 1 5 -1
  80.                     1 2 5 -1
  81.                     2 6 5 -1
  82.                     0 4 3 -1
  83.                     4 7 3 -1
  84.                 ]
  85.             }
  86.         }
  87.     ]
  88. }
  89. DEF Box3 Transform {
  90. translation 3 0 0 
  91.     children [
  92.         Shape {
  93.             appearance Appearance {
  94.                 material Material { diffuseColor 0 0 1 }
  95.             }
  96.             geometry IndexedFaceSet {
  97.                 coord Coordinate {
  98.                     point [
  99.                         -1 -1 1
  100.                         -1 1 1
  101.                         1 1 1
  102.                         1 -1 1
  103.                         -1 -1 -1
  104.                         -1 1 -1
  105.                         1 1 -1
  106.                         1 -1 -1                          
  107.                     ]
  108.                 }
  109.                 coordIndex [
  110.                     0 3 1 -1
  111.                     3 2 1 -1
  112.                     3 7 2 -1
  113.                     7 6 2 -1
  114.                     7 4 6 -1
  115.                     4 5 6 -1
  116.                     4 0 5 -1
  117.                     0 1 5 -1
  118.                     1 2 5 -1
  119.                     2 6 5 -1
  120.                     0 4 3 -1
  121.                     4 7 3 -1
  122.                 ]
  123.             }
  124.         }
  125.     ]
  126. }
  127. DEF BottomBar Transform {
  128.     translation 0 -3 0
  129.     scale       4  .5 0 
  130.     children [
  131.         Shape {
  132.             appearance Appearance {
  133.                 material Material { diffuseColor .8 .8 .8 }
  134.             }
  135.             geometry IndexedFaceSet {
  136.                 coord Coordinate {
  137.                     point [
  138.                         -1 -1 1
  139.                         -1 1 1
  140.                         1 1 1
  141.                         1 -1 1
  142.                         -1 -1 -1
  143.                         -1 1 -1
  144.                         1 1 -1
  145.                         1 -1 -1                          
  146.                     ]
  147.                 }
  148.                 coordIndex [
  149.                     0 3 1 -1
  150.                     3 2 1 -1
  151.                     3 7 2 -1
  152.                     7 6 2 -1
  153.                     7 4 6 -1
  154.                     4 5 6 -1
  155.                     4 0 5 -1
  156.                     0 1 5 -1
  157.                     1 2 5 -1
  158.                     2 6 5 -1
  159.                     0 4 3 -1
  160.                     4 7 3 -1
  161.                 ]
  162.             }
  163.         }
  164.     ]
  165. }